/* 卡片样式 */
.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #007bff;
  margin-right: 0.75rem;
  border-radius: 2px;
}

.card-body {
  padding: 1.25rem;
}

/* 表格样式 */
.table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* 表头样式 */
.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  vertical-align: middle;
  padding: 0.85rem 0.75rem;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.table td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #212529;
  border-top: 1px solid #e9ecef;
}

/* 表格行hover效果 */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  transition: all 0.2s;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 按钮样式 */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

/* 操作按钮区域 */
.action-buttons {
  white-space: nowrap;
}

/* 搜索区域 */
.search-section {
  background-color: #f8f9fa;
  padding: 1rem 1.25rem;
}

.search-group {
  max-width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 表单样式 */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 模态框样式 */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-title {
  font-weight: 600;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

/* 分页信息 */
.pagination-info {
  padding: 0.5rem 0;
  color: #6c757d;
}

/* 表格响应式处理 */
@media (max-width: 992px) {
  .table-responsive {
    margin-bottom: 1rem;
  }
  
  .action-buttons .btn {
    padding: 0.25rem 0.5rem;
  }
  
  .d-none {
    display: none !important;
  }
}

/* 高级搜索区域 */
.advanced-search {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-top: 1rem;
}

/* 表单验证错误样式 */
.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
}

/* 加载指示器 */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  flex-direction: column;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.spinner-container p {
  margin-top: 1rem;
  color: #6c757d;
}

/* 自定义表格 */
.custom-table th,
.custom-table td {
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: all 0.3s;
} 